package pack21;

class A4 implements Cloneable
{
	int eid;
	String sname;
	
	A4(int eid,String sname)
	{
		this.eid=eid;
		this.sname=sname;
	}
	public Object clone()throws CloneNotSupportedException
	{
		return super.clone();
	}
public void show()
{
	System.out.println("eid is:"+eid+"\t"+"sname is:"+sname);
}
}
public class Program4 {

	
	public static void main(String[] args) throws CloneNotSupportedException {
		A4 obj=new A4(10,"srik");
		A4 obj2=(A4)obj.clone();
		obj.show();
		obj2.show();
	}

}
